package com.leyou.sh.search.service;

import com.leyou.sh.search.dto.SearchParamDTO;
import com.leyou.sh.search.entity.Goods;
import com.leyou.starter.elastic.entity.PageInfo;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @author balisong_fcs
 * @date 2021/1/5 18:26
 * @desc
 */
public interface SearchService {

    Mono<List<String>> getSuggest(String key);

    Mono<PageInfo<Goods>> searchGoods(SearchParamDTO request);

    Mono<Map<String, List<? extends Object>>> listFilter(SearchParamDTO request);
}
